package com.ruoyi.web.service;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.BoatDirectionParam;
import com.ruoyi.common.core.domain.entity.RequestControlParam;
import com.ruoyi.common.core.domain.entity.SysTask;
import com.ruoyi.common.core.domain.entity.SysTaskPollute;

/**
 * @ProjectName: RuoYi-Vue
 * @Package: com.ruoyi.web.service
 * @ClassName: IWisdomCruiseService
 * @Description: 智慧巡河
 * @Author: mengxiabing
 * @CreateDate: 2022-09-20 14:20
 * @UpdateUser: 更新者
 * @UpdateDate: 2022-09-20 14:20
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public interface IWisdomCruiseService {
    AjaxResult requestControl(RequestControlParam param);

    AjaxResult changeBoatDirection(BoatDirectionParam param);

    AjaxResult switchTaskModel(SysTask param);

    AjaxResult startTask(SysTask param);

    AjaxResult stopTask(SysTask param);
    AjaxResult applyControl(int isCloudControlAllowed,int control);

    AjaxResult emergencyStopTask(SysTask param);

    /**
     * 在线人数
     * @param number
     * @return
     */
    AjaxResult onlineUser(int number);

    /**
     * 未完成任务
     * @param number
     * @return
     */
    AjaxResult notFinishedTask(int number);

    /**
     * 在线船数
     * @param number
     * @return
     */
    AjaxResult onlineBoat(int number);

    /**
     * 切换到污染源模式
     * @param param
     * @return
     */
    AjaxResult switchToPollute(SysTaskPollute param);
}
